package ooday02work;

public class ExtendsTest {
    public static void main(String[] args) {
        Student stu  = new Student("张三",25,"JMS","jsd2302","2023");
        stu.eat();
        stu.sleep();
        stu.study();

        Doctor doc = new Doctor("李四" , 43,"LF","专家");
        doc.eat();
        doc.cut();
        doc.sleep();

        Teacher tea = new Teacher("小花" ,27,"ZZ",7000.00);
        tea.teach();
        tea.eat();
        tea.sleep();
    }
}
